package com.bupt.dao;

import com.bupt.bean.DeviceChannel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface DeviceChannelRepository extends JpaRepository<DeviceChannel,String>, JpaSpecificationExecutor<DeviceChannel> {
    List<DeviceChannel> findAllByDeviceId(Integer deviceId);

    void deleteByDeviceChannelId(Integer deviceChannelId);

    DeviceChannel findByDeviceChannelId(Integer deviceChannelId);
}
